<?php
/**
 *
 * User: Traun
 * Date: 2021/8/21
 * Time: 11:36
 * @copyright Copyright (c) 湖南悦奥网络技术有限公司 .
 */

include("model/Db.php");

$db = Db::getInstance();
$sql = "insert user set name = '李四',age = 10";
$db->exec($sql);
var_dump($db->insertId);

$update = "update user set name = 狗子 where id = 1";
$db->exec($sql);
var_dump($db->num);


$find = "select id,name,age from user where id = 1";
var_dump($db->find($find));